package dbms.absyn;

import dbms.symbol.Symbol;

public class ConstraintClause {
	int pos;
	Constraint constraint;
	Value value;
	Attribute attr;
	Symbol name;
	AttrList attr_list;
	
	public ConstraintClause (int p, Constraint c, Attribute a) {
		pos = p;
		constraint = c;
		attr = a;
	}
	
	public ConstraintClause (int p, Symbol n, Constraint c, AttrList al) {
		pos = p;
		name = n;
		constraint = c;
		attr_list = al;
	}
	
	public ConstraintClause (int p, Symbol n) {
		pos = p;
		name = n;
	}
	
	public ConstraintClause (int p, Attribute a, Value v) {
		pos = p;
		attr = a;
		value = v;
	}
	
	public ConstraintClause (int p, Attribute a, String s) {
		pos = p;
		attr = a;
	}
}
